home *** CD-ROM | disk | FTP | other *** search
- Path: grimsel.zurich.ibm.com!usenet
- From: wgk@zurich.ibm.com (Keith Whittingham)
- Newsgroups: comp.lang.c++
- Subject: Re: easy c++ question
- Date: 8 Apr 1996 13:12:01 GMT
- Organization: IBM Research, ZRH
- Message-ID: <4kb3b1$kjm@grimsel.zurich.ibm.com>
- References: <316901DA.3138C677@ablecom.net>
- Reply-To: wgk@zurich.ibm.com
- NNTP-Posting-Host: pine.zurich.ibm.com
- X-Newsreader: IBM NewsReader/2 v1.00
-
- In <316901DA.3138C677@ablecom.net>, The Letter O <jczech@ablecom.net> writes:
-
-
- class Stack
- {
- public:
- Stack(void) { count = 0; }
- // ...
-
- private:
- int count;
- // ...
- };
-
-
- int main(int argc,char *argv[])
- {
- Stack s;
- // ...
- return 0;
- }
-
- will certainly call the constructor Stack::Stack() which is basically what
- your doing I guess?
-
- Keith
-
-
-
-